<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/*
  | -------------------------------------------------------------------------
  | URI ROUTING
  | -------------------------------------------------------------------------
  | This file lets you re-map URI requests to specific controller functions.
  |
  | Typically there is a one-to-one relationship between a URL string
  | and its corresponding controller class/method. The segments in a
  | URL normally follow this pattern:
  |
  |	example.com/class/method/id/
  |
  | In some instances, however, you may want to remap this relationship
  | so that a different class/function is called than the one
  | corresponding to the URL.
  |
  | Please see the user guide for complete details:
  |
  |	http://codeigniter.com/user_guide/general/routing.html
  |
  | -------------------------------------------------------------------------
  | RESERVED ROUTES
  | -------------------------------------------------------------------------
  |
  | There area two reserved routes:
  |
  |	$route['default_controller'] = 'welcome';
  |
  | This route indicates which controller class should be loaded if the
  | URI contains no data. In the above example, the "welcome" class
  | would be loaded.
  |
  |	$route['404_override'] = 'errors/page_missing';
  |
  | This route will tell the Router what URI segments to use if those provided
  | in the URL cannot be matched to a valid route.
  |
 */

$route['default_controller'] = "art";

/// admin  Home------------------------------->
$route['admin'] = "admin/login";
$route['adminloginnow'] = "admin/loginNow";
$route['change_password.php'] = "admin/changePassword";
$route['updatePass'] = "admin/updatePass";
$route['adminlogout.php'] = "admin/logout";
$route['managecategory.php'] = "admin/category";
$route['deletecategory.php/(:any)'] = "admin/deleteCategory/$1";
$route['editCategory/(:any)'] = "admin/editCategory/$1";
$route['updateCategory'] = "admin/updateCategory";
$route['addcategory.php'] = "admin/addCategory";
$route['addCategoryForm'] = "admin/addCategoryForm";
$route['addtheme.php'] = "admin/addTheme";
$route['addNewTheme'] = "admin/addNewTheme";
$route['theme.php'] = "admin/manageTheme";
$route['deletetheme.php/(:any)'] = "admin/deletetheme/$1";
$route['editTheme/(:any)'] = "admin/editTheme/$1";
$route['updateTheme'] = "admin/updateTheme";
$route['addmedium.php'] = "admin/addMedium";
$route['loadTheme/(:any)'] = "admin/loadTheme/$1";
$route['addNewMedium'] = "admin/addNewMedium";
$route['managemedium.php'] = "admin/manageMedium";
$route['deletemedium.php/(:any)'] = "admin/deletemedium/$1";
$route['editMedium/(:any)'] = "admin/editMedium/$1";
$route['updateMedium'] = "admin/updateMedium";
$route['add_newartist.php'] = "admin/addArtist";
$route['add_newartistForm'] = "admin/add_newartistForm";
$route['manage_artist.php'] = "admin/manage_artist";
$route['deleteartist.php/(:any)'] = "admin/deleteartist/$1";
$route['editartist/(:any)'] = "admin/editartist/$1";
$route['updateartist'] = "admin/updateartist";
$route['add_gallery.php'] = "admin/addGallery";
$route['addnewArtist.php'] = "admin/addnewArtist";
$route['loadGTheme/(:any)'] = "admin/loadGTheme/$1";
$route['loadGmedium/(:any)'] = "admin/loadGmedium/$1";
$route['add_galleryForm'] = "admin/addGalleryForm";
$route['gallery.php'] = "admin/manageGallery";
$route['deleteGallery.php/(:any)'] = "admin/deleteGallery/$1";
$route['editGallery/(:any)'] = "admin/editGallery/$1";
$route['updateGallery'] = "admin/updateGallery";
$route['customer.php'] = "admin/customerValidation";
$route['deleteuser.php/(:any)'] = "admin/deleteuser/$1";
$route['edituser/(:any)'] = "admin/edituser/$1";
$route['updateUser'] = "admin/updateUser";
$route['addNewEvent'] = "admin/addNewEvent";
$route['manageEvent'] = "admin/manageEvent";
$route['insertEvent'] = "admin/insertNewEvent";
$route['editEvent/(:any)'] = "admin/editEvent/$1";
$route['deleteEvent/(:any)'] = "admin/deleteEvent/$1";
$route['updateEvent'] = "admin/updateEvent";
$route['addCms'] = "admin/addCms";
$route['insertCms'] = "admin/insertCms";
$route['manageCms'] = "admin/manageCms";
$route['editCms/(:any)'] = "admin/editCms/$1";
$route['updateCms'] = "admin/updateCms";

//// Fornt -End Routes----------------->
///----User Management----------------->
$route['registration.php'] = "art/joinNow";
$route['newUserRegistration'] = "art/newUserRegistration";
$route['home.php'] = "art/userLogin";
$route['mailToUser/user/register/(:any)']="art/mailToUser/$1";
$route['userForgetPassword.php']="art/userForgetPassword";
$route['forgetPassword.php']="art/forgetPassword";
$route['mailForgetPassword/(:any)']="art/mailForgetPassword/$1";
$route['UpdatePassword']="art/UpdatePassword";
$route['logout.php'] = "art/userLogout";
$route['reloadCaptcha'] = "art/reloadCaptcha";
$route['reseller'] = "art/resellerPage";

///-------Advertiser Managment----------->
$route['advertiserContinue'] = "art/advertiserContinue";
$route['insertAdvertise']="art/insertAdvertise";
$route['mailtoAdvertiser/(:any)']="art/mailtoAdvertiser/$1";
$route['post-free-ads']="art/advertiserLink";
$route['loadstate/(:any)'] = "art/loadstate/$1";
$route['loadCity/(:any)'] = "art/loadCity/$1";
$route['InsertAdvertisment'] = "art/InsertAdvertisment";
$route['backAdvertisment/(:any)'] = "art/backAdvertisment/$1";


/////----------------- Artist Managment------------>
$route['insertArtist']="art/insertArtist";
$route['maiToArtist/sessionid/djhuhfv65676/(:any)']="art/maiToArtist/$1";



///----common html pages-------------------->
$route['aboutUs'] = "art/aboutUs";
$route['contactUs'] = "art/contactUs";
$route['disclaimer'] = "art/disclaimer";
$route['privacyPolicy'] = "art/privacyPolicy";

///-----Page not found -- 404 redirect---------------->
$route['404_override'] = 'art/override';


/* End of file routes.php */
/* Location: ./application/config/routes.php */
